package Fraction;

public class Main {
    public static void main(String[] args) {
        Fraction a = new Fraction(1,2);
        Fraction b = new Fraction(1,4);
        Fraction c = new Fraction(1,2);
        Fraction d = new Fraction(1,4);

        System.out.println(a.toDouble());

        System.out.println(a.plus(b).fenzi / a.plus(b).fenmu);

        System.out.println(a.multiply(c).fenzi / a.multiply(c).fenmu);
    }
}
